// 滚动条隐藏
.scrollbar::-webkit-scrollbar {
  display: none;
}

// 展示图标的容器
.iconContent {
  margin-bottom: 12px;
  overflow: auto;
  border: 1px solid #ddd;
  border-radius: 5px;

  .showEmpty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
}

// 设置pagenation的样式
.iconPickerPageNation {
  padding: 0;

  .total {
    margin-right: 0 !important;
  }

  .ant-pagination {
    display: flex;
    margin: 0 !important;
  }

  .ant-select-selector {
    margin-top: 0 !important;
  }

  .ant-select.ant-pagination-options-size-changer.ant-select-single.ant-select-show-arrow {
    left: 0;
  }
}

// 隐藏展示图标的容器滚动条
.iconContent::-webkit-scrollbar {
  display: none;
}

.iconModalTitle {
  color: #000;
  font-size: 22px;
  font-family: 'MicrosoftYaHei';
}

.iconModal {

  // 去除tab页中的滚动条条
  .ant-tabs-tabpane::-webkit-scrollbar {
    display: none;
  }

  .sizeInput {
    input {
      line-height: 30px;
    }
  }
}

// 模态框相关样式
.iconModal.ant-modal {

  // 去除nav和modal的border
  .ant-tabs-top>.ant-tabs-nav::before,
  .ant-tabs-bottom>.ant-tabs-nav::before,
  .ant-tabs-top>div>.ant-tabs-nav::before,
  .ant-tabs-bottom>div>.ant-tabs-nav::before {
    border-bottom: 0;
  }

  // .ant-modal-content {
  //   margin-top: -50px;
  // }

  .ant-tabs-nav-wrap {
    padding-left: 15px;
  }

  .ant-modal-footer {
    padding-top: 0;
    border-top: 0;
  }

  .ant-modal-body {
    padding: 0 19px;
  }

  .ant-modal-header {
    padding: 9px 19px;
  }

  .showChoseIcon {
    display: flex;
    margin-top: 16px;
    margin-bottom: 16px;
    // margin-left: 16px;
    color: #999;
    font-size: 14px;

    .choseIcon {
      margin-right: 10px;
      font-size: 14px;
    }

    // .choseIconText{
    //   width: 290px;
    //   overflow: hidden;
    //   white-space: nowrap;
    //   text-overflow: ellipsis;
    // }
  }

  // form表单部分
  .ant-col-6 {
    flex: 0 0 15%;
  }

  .ant-form-item {
    margin-bottom: 15px;

    .color_box {
      margin-left: 9px;
    }

    .ant-form-item-label>label {
      color: #999;
    }
  }

  .ant-form-item-label>label::after {
    margin: 0 11px 0 2px;
    content: '';
  }
}

.setterIcon {
  position: absolute;
  left: 87px;
  display: flex;
  flex-wrap: wrap;

  &-Box {
    display: flex;
    align-items: center;

    &-icon {
      width: 50px;
      margin-right: 10px;

      & * {
        vertical-align: middle;
      }
    }

    :global(.ant-modal-body) {
      display: flex;
      flex-wrap: wrap;
    }
  }
}

&-Select {
  margin-top: 3px;
}

.iconPicker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 72px;
  margin: 4px 8px;
  border: 1px solid #fff;
  border-radius: 5px;
  cursor: pointer;

  &:hover {
    background-color: #f3f3f3;
    border-radius: 5px;

    .deleteIconContent {
      display: block;
    }
  }

  &.selected {
    background-color: #f3f3f3;
  }

  .deleteIconContent {
    display: none;

    .deleteIcon {
      position: absolute;
      top: -6px;
      right: -6px;
    }
  }
}

.iconPickerText {
  display: block;
  height: 30px;
  margin-top: 6px;
  overflow: hidden;
  color: #999;
  font-size: 12px;
  line-height: 15px;
  text-align: center;
  word-wrap: break-word;
  word-break: break-all;
}

.pickerWrap {
  :global {
    .ant-form-item {
      margin: 0;
    }
  }
}

.addGroup.ant-modal {
  .ant-modal-body {
    padding: 0;
  }

  // .ant-modal-header {
  //   padding: 18px 20px;
  // }
  .container {
    margin: 61px 40px 23px;

    .ant-form.ant-form-horizontal {
      display: flex;
      align-items: center;
    }

    &>form>label {
      display: block;
      margin-right: 15px;
      margin-bottom: 22px;
      color: #666;
      font-size: 14px;
      font-family: 'MicrosoftYaHei';
      text-align: center;
    }

    // .ant-form-item {
    //   margin: 0;
    // }

    // &>div {
    //   display: flex;
    //   align-items: center;
    //   margin: 74px 130px 68px 130px;

    //   &>label {
    //     display: block;
    //     margin-right:24px;
    //     text-align: center;
    //     width: 56px;
    //     height: 19px;
    //     font-size: 14px;
    //     color: #666;
    //     font-family: 'MicrosoftYaHei';
    //   }
    // }
  }
}

.uploadIcon.ant-modal {
  .ant-modal-body {
    padding: 36px 40px 69px 36px;
  }

  // .ant-modal-header {
  //   padding: 18px 20px;
  // }

  .container {
    display: flex;

    .ant-form.ant-form-horizontal {
      display: flex;
      align-items: center;
    }

    .upload {
      .ant-form-item-has-error {
        .ant-upload.ant-upload-select-picture-card {
          border: 1px dashed red;
        }
      }

      .ant-form-item-explain-connected {
        margin-right: 28px;
        text-align: center;
      }

      .ant-form-item-control-input {
        text-align: center;
      }

      .ant-upload.ant-upload-select-picture-card {
        width: 120px;
        height: 120px;
        margin-right: 52px;
        margin-bottom: 2px;
        margin-left: 16px;
        background-color: #fff;
      }

      .descript {
        span {
          display: block;
          width: 160px;
          height: 33px;
          color: #666;
          font-size: 12px;
          font-family: 'MicrosoftYaHei';
          text-align: center;
        }
      }
    }

    .message {
      .ant-select-selection-item {
        line-height: 36px;
      }

      &>div {
        display: flex;
        align-items: center;
        margin-bottom: 26px;

        .ant-select-selector {
          height: 38px;
        }

        &>label {
          display: block;
          width: 56px;
          height: 38px;
          margin-right: 15px;
          margin-bottom: 22px;
          color: #666;
          font-size: 14px;
          font-family: 'MicrosoftYaHei';
          line-height: 38px;
          text-align: center;
        }
      }
    }
  }
}

// 自定义图标
.customIcon {
  button {
    min-width: 72px;
    height: 32px;
    margin: 0;
    text-align: center;
    border-radius: 4px;
  }

  .groupLoading {
    .ant-spin-spinning {
      width: 100%;
      margin-top: 20px;
    }
  }

  .operationButton {
    display: flex;
  }

  .collapseContent {
    margin-top: 20px;

    .divider {
      width: 100%;
      border-top: 1px solid #ddd;
    }

    // 展开关闭箭头
    .ant-collapse-icon-position-right>.ant-collapse-item>.ant-collapse-header .ant-collapse-arrow {
      position: absolute;
      right: 1px;
    }

    // 额外结点展示在标题右边（多选框）
    .ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-extra {
      margin-right: 12px;
      margin-left: 0;
    }

    .ant-collapse>.ant-collapse-item>.ant-collapse-header {
      flex-direction: row-reverse;
      justify-content: flex-end;
      padding: 12px 0 4px;
    }

    // panel
    .ant-collapse-ghost>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box {
      padding: 0 0 4px;
    }

    .customIconContent {
      .ant-empty.ant-empty-normal {
        width: 100%;
      }
    }
  }
}